import request from '@/utils/request'

/**
 * 创建活动 
 */
export function createACT (data) {
    return request({
        url: 'activity/createACT',
        method: 'post',
        data
    })
}

/**
 * 修改活动
 */
export function editACT (data) {
    return request({
        url: 'activity/editACT',
        method: 'post',
        data
    })
}

/**
 * 获取活动加分类型
 */
export function getActScoreType (data) {
    return request({
        url: 'activity/getActScoreType',
        method: 'get',
        params: data
    })
}

/**
 * 获取活动列表
 */
export function getArticleList (data) {
    return request({
        url: 'activity/getACT',
        method: 'get',
        params: data
    })
}

/**
 * 获取单个活动的详细内容
 */
export function getACTDetailInfo (data) {
    return request({
        url: 'activity/getDetailInfo',
        method: 'get',
        params: data
    })
}

/**
 * 审批活动
 */
export function approvalACT (data) {
    return request({
        url: 'activity/approvalACT',
        method: 'post',
        data
    })
}

/**
 * 获取活动图片
 */
export function getACTImg (data) {
    return request({
        url: '/activity/getACTImg',
        method: 'get',
        params: data
    })
}
/**
 * 获取活动反馈列表
 */
export function getFeedback (data) {
    return request({
        url: '/activity/getFeedback',
        method: 'get',
        params: data
    })
}

/**
 * 处理活动反馈
 */
export function handleFeedback (data) {
    return request({
        url: '/activity/handleFeedback',
        method: 'post',
        data
    })
}

/**
 * 获取某活动加分文件
 */
export function getActScoreFile (actId, scoreApprovalStatus) {
    return request({
        url: '/activity/getActScoreFile',
        method: 'get',
        params: { actId, scoreApprovalStatus }
    })
}

/**
 * 审批加分文件
 */
export function approvalScoreList (actId) {
    return request({
        url: '/activity/approvalScoreFile',
        method: 'post',
        data: { actId }
    })
}

/**
 * 获取某活动所有参赛文件
 */
export function getEntryList (actId) {
    return request({
        url: '/activity/getEntryList',
        method: 'get',
        params: { actId }
    })
}

/**
 * 活动组织者给参赛成员评分
 */
export function marchScore (data) {
    return request({
        url: '/activity/marchScore',
        method: 'post',
        data
    })
}